function findBy//namefunction//($from, $to, $//name//) {
        $query = "//query_select//";
        $query_count = "SELECT count(*) FROM //nameclass// WHERE name LIKE '%$//name//%' LIMIT $from, $to";
        $mysqli = new mysqli('localhost', 'root', '', 'cdcol');
        if ($mysqli->connect_errno) {
            printf("Connect failed: %s\n", $mysqli->connect_error);
            exit();
        }

        $posts = array();
        if ($result = $mysqli->query($query)) {
            while ($row = $result->fetch_array(MYSQLI_ASSOC)) {
				//query_select_param_references_array//
			    //query_select_param_model_array//
                $posts[] = array('//nameclass//' => $//nameclass// //query_select_param_references_post//);
            }
            $result->close();
        }

        $rows = array();
        $rows[0] = 0;
        if ($result = $mysqli->query($query_count)) {
            $rows = $result->fetch_row();
            $result->close();
            $mysqli->close();
        }

        header('Content-type: application/json');
        echo json_encode(array('result' => $posts, 'rows' => $rows[0]));
    }
    
    